find the trigonometric ratio with respect to theta and phi